<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
    /* 
    div+p{} 选择div之后的第一个元素
    div~p{} 选中div之后的所有p元素
     */
    
    
    
    div+p{
        color: red;
    }
    div~p{
        color: pink;
    }
    
    </style>
</head>
<body>
    <div>
        div
    </div>
    <p>hello world</p>
    <p>hello world</p>
    <p>hello world</p>
    <p>hello world</p>
    <p>hello world</p>
    <p>hello world</p>
</body>
</html>